public class Undergraduate extends Student {
    private String degree=" ";
    public Undergraduate(String name,int age,String degree){
        super(name,age);
        this.degree=degree;
    }
    public void show(){
        System.out.println("Undergraduate{"+"degree='"+degree+'\''+'}');
    }
}
